% 区间函数
function y = fsg0(x, d)

y = 0.5*(sign(x+d)-sign(x-d));
end